package com.java.advance.ticket.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Redis的属性配置类
 * Created by yangminghua on 2018/12/6.
 */
@Data
@Component
@ConfigurationProperties(prefix = "redis")
@PropertySource(value = "classpath:application-work.properties")
public class RedisConfig {

    private String host;
    private int port;
    //    private String password;
    private int timeout;
    private int poolMaxTotal;
    private int poolMaxIdle;
    private int poolMaxWait;
    private int database;
}
